package tr3dtris.game.persistence;

/**
 *
 * @author Luciano
 */
public class DisplayOptions extends AbstractOptions
{
    public static final int VIEWMODE_3D = 1;
    public static final int VIEWMODE_2D = 2;
    public static final int BLOCKSHAPE_COLORCUBE = 1;
    public static final int BLOCKSHAPE_SMOOTH = 2;
    public static final int BLOCKSHAPE_ICOSAEDRIC = 3;
    public static final int BLOCKSHAPE_SUZANNE = 4;
    public static final int BLOCKSMATERIAL_SOLID = 1;
    public static final int BLOCKSMATERIAL_WOOD = 2;
    public static final int BLOCKSMATERIAL_FUZZY = 3;
    public static final int BLOCKSMATERIAL_UNICT = 4;

    private static final int DEFAULT_VIEWMODE = VIEWMODE_3D;
    private static final int DEFAULT_BLOCKSSHAPE = BLOCKSHAPE_COLORCUBE;
    private static final int DEFAULT_BLOCKSMATERIAL = BLOCKSMATERIAL_SOLID;

    private int viewMode;
    private int blocksShape;
    private int blocksMaterial;

    public DisplayOptions(){}

    public void loadDefaults()
    {
        this.setViewMode(DEFAULT_VIEWMODE);
        this.setBlocksShape(DEFAULT_BLOCKSSHAPE);
        this.setBlocksMaterial(DEFAULT_BLOCKSMATERIAL);
    }

    /**
     * @return the viewMode
     */
    public int getViewMode() {
        return viewMode;
    }

    /**
     * @param viewMode the viewMode to set
     */
    public void setViewMode(int viewMode) {
        this.viewMode = viewMode;
    }

    /**
     * @return the blocksShape
     */
    public int getBlocksShape() {
        return blocksShape;
    }

    /**
     * @param blocksShape the blocksShape to set
     */
    public void setBlocksShape(int blocksShape) {
        this.blocksShape = blocksShape;
    }

    /**
     * @return the blocksMaterial
     */
    public int getBlocksMaterial() {
        return blocksMaterial;
    }

    /**
     * @param blocksMaterial the blocksMaterial to set
     */
    public void setBlocksMaterial(int blocksMaterial) {
        this.blocksMaterial = blocksMaterial;
    }

    
}
